<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>XGH个人博客</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <nav class="navbar navbar-default" role="navigation">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span></button>
                    <a class="navbar-brand" href="#">XGH</a>
                </div>

                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li class="active">
                            <a target="_blank" href="{:url('index/add/index')}">博客发布</a>
                        </li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">其他<strong class="caret"></strong></a>

                        </li>
                    </ul>
                    <form class="navbar-form navbar-left" role="search" action="{:url('index/index')}" method="get">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="输入关键字" name="title" value="{$dataConditions}"/>
                        </div> <button type="submit" class="btn btn-default">搜索</button>
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a>您好：{$username}</a>
                        </li>

                        <li>
                            <a href="{:url('index/user/logout')}">退出登录</a>
                        </li>

                    </ul>
                </div>

            </nav>
            <div class="jumbotron">
                <h1>
                    Hello, world!
                </h1>
                <p>
                    大家好这是我的第一个博客
                </p>
            </div>
        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-4 column">
            <h2>
                这是我的展示
            </h2>

        </div>

    </div>
</div>


<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="row">

                {volist name="data" id="vo"}
                <div class="col-md-4" >
                    <div class="thumbnail" style=width:400px;height:350px;>
                        <img style="width:400px;height:200px"  alt="图片"
                             src="{$vo.logimg}" />
                        <div class="caption">
                            <h5 style="color:#FFA488;font-weight: 900;text-align:center">
                                【{$vo.title|mb_substr=0,10,'utf-8'}】
                            </h5>
                            <h5 style="color:#FFC8B4"><span style="font-weight:bold;color:#FFC8B4" >作者：</span>{$vo.user_id}</h5>
                            <p>
                                {$vo.content|content|raw}
                            </p>
                            <p>
                                <a class="btn btn-primary" href="{:url('detail/index',['id'=>$vo.id])}">详情</a>
                            </p>
                        </div>
                    </div>
                </div>
                {/volist}
                            <div>{$data->render()|raw}</div>
            </div>
        </div>
    </div>
</div>



</body>
</html>

